<%@page import="com.shsh.safemanage.util.RequestUtil"%>
<%@page import="com.shsh.safemanage.util.Util"%>
<%@page import="com.shsh.safemanage.model.AccidentCasualty"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.shsh.safemanage.util.Constants"%>
<%
	List<AccidentCasualty> innerCasualtyList = (List<AccidentCasualty>)request.getSession().getAttribute(Constants.SESSION_ACCIDENT_CASUALTY);
if(innerCasualtyList == null){
	innerCasualtyList = new ArrayList<AccidentCasualty>();
}
request.getSession().setAttribute(Constants.SESSION_ACCIDENT_CASUALTY, innerCasualtyList);

Integer casualtyIndex  = RequestUtil.getParameter(request, Constants.REQUEST_PARAMETER_CASUALTY_INDEX, (Integer)null);
if(casualtyIndex!=null){
	innerCasualtyList.remove(casualtyIndex.intValue());
}

Map<String, Object> map = new HashMap<String, Object>();
map.put(Constants.JSON_KEY_IS_SUCCESS, true);
%>
<%=Util.toJSONString(map)%>